<?xml version="1.0" encoding="UTF-8"?>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>


<div>
    <h1>Nahrát osobu</h1>

    <form action='controler' method="post" enctype="multipart/form-data">
        <input type="hidden" name="action" value="upload"/><br/>
        <label for="name">Jméno:</label><br/>
        <input id="name" type="text" name="name"/><br/>
        <label for="description">Popis:</label><br/>
        <textarea id="description" name="description" rows="5" cols="30"></textarea><br/>
        <label for="municipalty">Město:</label><br/>
        <input id="municipalty" type="text" name="municipalty"/><br/>
        <label for="street">street:</label><br/>
        <input id="street" type="text" name="street"/><br/>
        <label for="numOri">Číslo orientační</label><br/>
        <input id="numOri" type="text" name="numOri"/><br/>
        <label for="file">Foto:</label><br/>
        <input id="file" type="file" name="file"/><br/>

        <input id="submitUpload" type="submit" value="Nahrát"/><br/>
    </form>
    <div id="message">
        <span id="messageUploadOk" class='ok'><c:out value="<%= request.getParameter("messageUploadOk") %>"></c:out></span>
        <span id="messageUploadKo" class='ko'><c:out value="<%= request.getParameter("messageUploadKo") %>"></c:out></span>
    </div>
</div>
<div id="map"></div>

